package cn.wjj.org.domain;

import cn.wjj.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;


@Data
public class Department extends BaseDomain{

    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*暂时不用*/
    private String dirPath;
    /*部门状态 0 正常 ，-1 停用*/
    private int state;

    //部门管理员ID  Employee表
    private Long manager_id;
    private Employee manager;


    private Long parent_id;//上级部门id
    private Department parent;//上级部门

    //保存当前部门下的所有子部门
    private List<Department> children = new ArrayList<>();


}
